<script setup>

let count = 1;
</script>

<template>
<!--  默认作用域插槽-->
  <div>
    <span>hello</span>
    <slot :count="count"></slot>
  </div>

<!--  具名作用域插槽-->
  <div>
    <span>hello</span>
    <slot name="header" :count="count"></slot>
  </div>
</template>

<style scoped>

</style>